package com.rmfyzxfw.caseprocess.model.converter;

import com.rmfyzxfw.caseprocess.model.cmd.DataNodeCmd;
import com.rmfyzxfw.caseprocess.model.cmd.DataNodeEditCmd;
import com.rmfyzxfw.caseprocess.model.cmd.DataNodeManageCmd;
import com.rmfyzxfw.caseprocess.model.po.DataNode;
import com.rmfyzxfw.caseprocess.model.vo.DataNodeDetailVO;
import com.rmfyzxfw.caseprocess.model.vo.DataNodeListVO;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * @description:
 * @Author: GYW  742926306@qq.com
 * @Date: 2024/8/15 11:23
 */
@Mapper(componentModel = "spring")
public interface DataNodeConverter {
    DataNode cmd2do(DataNodeCmd cmd);
    DataNode cmd2do(DataNodeEditCmd cmd);

    List<DataNodeListVO> dos2vos(List<DataNode> dataNodes);

    DataNode cmd2do(DataNodeManageCmd cmd);

    DataNodeDetailVO do2vo(DataNode dataNode);
}
